<template>
  <div>
    <el-menu :default-active="$route.path" router class="el-menu-vertical-demo"
             style="width: 200px;min-height: calc(100vh - 50px)">
      <el-menu-item index="home" >
        <template #title>
          <el-icon><House /></el-icon>
          <span>首页</span>
        </template>
      </el-menu-item>

<!--      人员管理-->
      <el-sub-menu index="people">
        <template #title>
          <el-icon><User /></el-icon>
          <span>人员管理</span>
        </template>
        <el-menu-item index="/userList" :route="{path:'/userList'}">游客管理</el-menu-item>
        <el-menu-item index="/staffList" :route="{path:'/staffList'}">工作人员管理</el-menu-item>
        <el-menu-item index="/adminList" :route="{path:'/adminList'}">管理员管理</el-menu-item>
      </el-sub-menu>

<!--      站点内容管理-->
      <el-sub-menu index="website">
        <template #title>
          <el-icon><setting /></el-icon>
          <span>站点管理</span>
        </template>
        <el-menu-item index="exhibition" :route="{path:'/exhibitionManagement'}">展览管理</el-menu-item>
        <el-menu-item index="notice" :route="{path:'/noticeManagement'}">公告管理</el-menu-item>
        <el-menu-item index="slideshow" :route="{path:'/slideshowManagement'}">轮播图管理</el-menu-item>
      </el-sub-menu>


      <el-menu-item index="collections" >
        <template #title>
          <el-icon><Star /></el-icon>
          <span>藏品管理</span>
        </template>
      </el-menu-item>

      <el-sub-menu index="mall" >
        <template #title>
          <el-icon><Goods /></el-icon>
          <span>商城管理</span>
        </template>
        <el-menu-item index="products" :route="{path:'/productsManagement'}">文创产品管理</el-menu-item>
        <el-menu-item index="order" :route="{path:'/orderManagement'}">订单管理</el-menu-item>
        <el-menu-item index="mallanalyse" :route="{path:'/mallAnalyse'}">商城流水分析</el-menu-item>
      </el-sub-menu>

    </el-menu>
  </div>

</template>

<script>
import { House,User, Star, Goods, Setting } from '@element-plus/icons-vue'
export default {
  name: "Aside",
  components:{
    House,
    User,
    Star,
    Goods,
    Setting
  }
}
</script>

<style scoped>

</style>